﻿
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CreateNewUser.aspx.cs" Inherits="TrainingWorkshop.MVPWebsite.User.Views.CreateNewUser"
    Title="CreateNewUser" MasterPageFile="~/Shared/DefaultMaster.master" %>
<asp:Content ID="content" ContentPlaceHolderID="DefaultContent" Runat="Server">

        <h1>Create New User</h1>
        <br/>
        <asp:Panel ID="Panel1" runat="server" GroupingText="User Information" 
            Height="321px" style="margin-left: 0px" Width="588px">
            <table border="0" cellpadding="0" cellspacing="0" bgcolor="White">
            <tr>
                <td align="left" bgcolor="White" valign="middle" width="100" colspan="0" style="height: 25px">
                    First Name
                </td>
                <td align="left" bgcolor="White" valign="middle" width="108" colspan="0" style="height: 25px">
                    <asp:TextBox ID="CreateFirstNameTextBox" runat="server"></asp:TextBox>
                </td>
                <td align="center" bgcolor="White" valign="middle" width="180" colspan="0" style="height: 25px">
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="CreateFirstNameTextBox"
                 ErrorMessage="Please write the First Name"></asp:RequiredFieldValidator>
                 </td>
            </tr>
                
                    <caption>
                        <br />
                        <tr>
                            <td align="left" bgcolor="White" colspan="0" style="height: 25px" 
                                valign="middle" width="100">
                                Last Name
                            </td>
                            <td align="left" bgcolor="White" colspan="0" style="height: 25px" 
                                valign="middle" width="108">
                                <asp:TextBox ID="CreateLastNameTextBox" runat="server"></asp:TextBox>
                            </td>
                            <td align="center" bgcolor="White" colspan="0" style="height: 25px" 
                                valign="middle" width="180">
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                    ControlToValidate="CreateLastNameTextBox" 
                                    ErrorMessage="Please write the Last Name"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <caption>
                            <br />
                            <tr>
                                <td align="left" bgcolor="White" colspan="0" style="height: 25px" 
                                    valign="middle" width="100">
                                    Department
                                </td>
                                <td align="left" bgcolor="White" colspan="0" style="height: 25px" 
                                    valign="middle" width="108">
                                    <asp:DropDownList ID="CreateDepartmentDropDownList" runat="server">
                                    </asp:DropDownList>
                                </td>
                                <td align="center" bgcolor="White" colspan="0" style="height: 25px" 
                                    valign="middle" width="180">
                                    <asp:CompareValidator ID="CompareValidator1" runat="server" 
                                        ControlToValidate="CreateDepartmentDropDownList" 
                                        ErrorMessage="Please select a department" Font-Bold="False" ForeColor="Red" 
                                        Operator="NotEqual" ValueToCompare="0"></asp:CompareValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="left" bgcolor="White" colspan="0" style="height: 25px" 
                                    valign="middle" width="100">
                                    Role
                                </td>
                                <td align="left" bgcolor="White" colspan="0" style="height: 25px" 
                                    valign="middle" width="108">
                                    <asp:DropDownList ID="CreateRoleDropDownList" runat="server">
                                    </asp:DropDownList>
                                </td>
                                <td align="center" bgcolor="White" colspan="0" style="height: 25px" 
                                    valign="middle" width="180">
                                    <asp:CompareValidator ID="CompareValidator2" runat="server" 
                                        ControlToValidate="CreateRoleDropDownList" ErrorMessage="Please select a role" 
                                        Font-Bold="False" ForeColor="Red" Operator="NotEqual" ValueToCompare="0"></asp:CompareValidator>
                                </td>
                            </tr>
                        </caption>
                </caption>
             </table>
             <br />
             <br />
             <table border="0" cellpadding="0" cellspacing="0" bgcolor="White">
            <tr>
                <td align="center" bgcolor="White" valign="middle" width="80" colspan="0" style="height: 25px">
                    <asp:Button ID="CreateAddButton" runat="server" Text="     Add " OnClick="CreateAddButton_Click"  Style="background-color: Transparent;background-image: url(../images/add.jpg); background-position: left;background-repeat: no-repeat"/>
                    
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
